package com.yongbao.model.dtomapper;

import com.yongbao.model.domain.DishOrderDishDO;
import com.yongbao.model.request.DishOrderDishRequest;
import com.yongbao.model.vo.DishOrderDishVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface DishOrderDishDtoMapper {

    DishOrderDishDtoMapper INSTANCE = Mappers.getMapper(DishOrderDishDtoMapper.class);

    /**
    * DO to VO
    * @param dishOrderDishDO
    * @return
    */
    DishOrderDishVO do2VO(DishOrderDishDO dishOrderDishDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    DishOrderDishDO request2DO(DishOrderDishRequest request);
}
